#/bin/bash

dev=eth0
sb_cli detach $dev
sb_cli attach $dev
sb_cli stop $dev
sb_cli pool_sz all $dev 0
for cpu in {0..3}; do
	sb_cli pool_sz $cpu $dev 16
	sb_cli pkt_cnt $cpu $dev 0
	sb_cli queue $cpu $dev 2048 512 64
	sb_cli fc $cpu $dev 0 0 0
	sb_cli add_pkt $cpu $dev 60 eth+ipv4 eth.dst=0xffffffffffff ipv4.src=0xc0a80a01 ipv4.dst=0xc0a80a02:16
	sb_cli pkt_txq $cpu $dev 0
done
